package com.jackiechan.hello.day02;

import java.util.Scanner;

/**
 * 输入一个IP地址，然后将4段数字分别输出
 * @author Xiloer
 *
 */
public class Test03 {
    public static void main(String[] args) {
        System.out.print("请输入IP地址:");
        String string = new Scanner(System.in).nextLine();
        show(string);
    }

    private static void show(String str) {
        String[] strings = str.split("\\.");
        for (String s :strings) {
            System.out.println(s);
        }

    }
}
